const { override, fixBabelImports, addLessLoader } = require('customize-cra')

module.exports = override(
    // 针对antd实现按需打包，根据import进行打包
    fixBabelImports('import', {  // import 使用了babel-plugin-import包
        libraryName: 'antd',
        libraryDirectory: 'es',
        style: true,
    }),
    addLessLoader({
        javascriptEnabled: true,
        modifyVars: {
            '@primary-color':'#1890ff'
        }
    })
)